from pydantic import BaseModel, Field
from pymilvus import MilvusClient

class MilvusConf(BaseModel):
    uri: str = Field(alias="Uri")

def check_database_exists(client: MilvusClient, db_name: str) -> bool:
    existing_dbs = client.list_databases()
    return db_name in existing_dbs
    